package cms.mager.domain;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * 功能:
 * Author: yuhui
 * Date: 2021/4/8 16:02
 */
public class User {
    private Integer id;
    private String username;
    private String password;
    private String realname;
    private Integer role;
    private Integer deleted;
    private String img;
    @JSONField(format = "yyyy-MM-dd")
    private Date create_time;
    private Date modify_time;
    @JSONField(format = "yyyy-MM-dd")
    private Date deleted_time;

    public User() {
    }

    public User(String username, String password, String realname, Integer role, Integer deleted, String img, Date create_time, Date modify_time, Date deleted_time) {
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.role = role;
        this.deleted = deleted;
        this.img = img;
        this.create_time = create_time;
        this.modify_time = modify_time;
        this.deleted_time = deleted_time;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getModify_time() {
        return modify_time;
    }

    public void setModify_time(Date modify_time) {
        this.modify_time = modify_time;
    }

    public Date getDeleted_time() {
        return deleted_time;
    }

    public void setDeleted_time(Date deleted_time) {
        this.deleted_time = deleted_time;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", realname='" + realname + '\'' +
                ", role=" + role +
                ", deleted=" + deleted +
                ", img='" + img + '\'' +
                ", create_time=" + create_time +
                ", modify_time=" + modify_time +
                ", deleted_time=" + deleted_time +
                '}';
    }
}
